<?php
    if($erro["id"]){
     echo '<font color="red">'.$erro["id"].'</font><br/>';
    }
    if($erro["nome"]){
     echo '<font color="red">'.$erro["nome"].'</font><br/>';
    }
?>
<font color="green"><?php echo $resultadoCadastro; ?></font><br/>
<br/><h2> Nova Disciplina </h2>
<form action="/admin/novaDisciplina" method="post">
<table cellpadding="0" cellspacing="0" border="0" class="form_table">
<tr>
<td valign="middle" align="right">Nome:</td>
<td valign="middle" align="left">
<input name="nome" type="text" class="inputgri" maxlength="100"/>
</td>
</tr>
<tr>
<td valign="middle" align="right">Código da Disciplina:</td>
<td valign="middle" align="left">
<input name="id" type="text" class="inputgri" maxlength="6"/>
</td>
</tr>
</table>
<p><input type="submit" class="button" value="Salvar" />
</form>
<form action="/admin/listarDisciplinas" method="post">
<input type="submit" class="button" value="Cancelar" />
</form>

